<template>
  <!-- 首页轮播 -->
  <van-swipe :autoplay="3000">
    <van-swipe-item v-for="(item,i) in list" :key="i" @click="handleClick(item.goodsId)">
      <van-image :src="$fullUrl(item.img)" width="100%"/>
    </van-swipe-item>
  </van-swipe>
</template>

<script>
export default {
  name: 'homeSwipe',
  props: {
    list: Array,
  },

  methods: {
    handleClick(id) {
      this.$router.push(`/goodsDetail/${id}`);
    }
  }
}
</script>
<style scoped>
</style>
